GXEqualViewDevice
You can use theGXEqualViewDevice
function to determine whether two view device objects are equal.
boolean GXEqualViewDevice(gxViewDevice one, gxViewDevice two);
- one
- A reference to one view device to test for equality.
two
- A reference to another view device to test for equality.
- function result
true
if the view device specified by theone
parameter is equal to the view device specified by thetwo
parameter;false
otherwise.DESCRIPTION
TheGXEqualViewDevice
function returns as its function result a Boolean value indicating whether the view device object specified by theone
parameter is equal to the view device object specified by thetwo
parameter.For two view device objects to be equal, they must have identical clips, mappings, bitmap shapes, and attributes. They also must be in the same view group, represent the same Macintosh graphics device (same
GDevice
record), and point to the same pixel image, color set, and color profile. The view device objects are not equal if they point to different but equivalent pixel images, color sets, or color profiles. The tag lists of the view devices need not be identical.ERRORS, WARNINGS, AND NOTICES
Errors invalid_viewDevice_reference SEE ALSO
To make a copy of a view device object that is equal by the criteria of this function, use theGXCopyToViewDevice
function, described in the previous section.Macintosh graphics devices and the
GDevice
record are described in Inside Macintosh: Imaging With QuickDraw. The relationship of view devices toGDevice
records is discussed in the Macintosh environment chapter of Inside Macintosh: QuickDraw GX Environment and Utilities.